<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<input type="hidden" name="zh_parsen/fzr_name" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>"/>
<input type="hidden" name="zh_parsen/fzr_mobile" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>"/>
<input type="hidden" name="zh_parsen/fzr_tel" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>"/>
<input type="hidden" name="zh_parsen/fzr_email" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>"/>
<div class="t_bar"><span class="color_red">*</span>${param.title }</div>
	<table class="t_css" id="eq_table0" width="100%" border="0" cellpadding="0" cellspacing="1">
		<col width="20%"/>
		<col width="30%"/>
		<col width="20%"/>
		<col width="30%"/>
	
	    <tr >
	        <td align="right">项目名称：</td>
	        <td colspan="3">
	        	<input type='text' name='proposal/zh_title' id='zh_title' style="width: 88%" class="input_css required" maxlength="100" value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="项目名称">
	        </td>
	    </tr>
  <%--      <tr>
            <td align="right">项目类别：</td>
            <td colspan="3">
                <span name="proposal/sub_grant_name">
                    <x:out select="$xmlData/data/proposal/sub_grant_name" />
                </span>
            </td>
        </tr>
        <tr>
            <td align="right">申请单位：</td>
            <td colspan="3">
                <span name="organizations/organization/org_name">
                    <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/>
                </span>
            </td>
        </tr>
        <tr>
            <td align="right">单位地址：</td>
            <td colspan="3">
                <span name="organizations/organization/address">
				    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" />
		        </span>
            </td>
        </tr>--%>
	    <tr >
	        <td align="right">归口管理部门：</td>
	        <td colspan="3">
	        	<c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
				<cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang " readonly="true" value="${recomend_org}"  label="归口管理部门"
         			id="recomend_org" onlyChooseLeaf="false"  showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
				<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"  class="required"  value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" label="归口管理部门">
				<input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
				
 			</td>

	    </tr>
	    <tr>

            <td  align="right" >归口负责人：</td>
            <td  colspan="1">
                <input  type="text" label="归口负责人" name="proposal/recomend_psn_cname" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/recomend_psn_cname" />">
            </td>
	       <td align="right">归口联系人：</td>
	       <td>
               <input  type="text" label="归口联系人" name="proposal/recomend_contact_psn_cname" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/recomend_contact_psn_cname" />">
           </td>
	    </tr>

      <tr>
        <td  align="right" >归口通讯地址：</td>
        <td  colspan="3">
            <input  type="text" label="归口通讯地址" style="width: 88%" name="proposal/recomend_address" class="input_css required" maxlength="100" value="<x:out select="$xmlData/data/proposal/recomend_address" />">
        </td>
        </tr>
        <tr>
            <td  align="right" >归口邮政编码：</td>
            <td  colspan="1">
                <input  type="text" label="归口邮政编码" name="proposal/recomend_zip_code" class="input_css required" maxlength="6" value="<x:out select="$xmlData/data/proposal/recomend_zip_code" />">
            </td>
            <td align="right">归口传真：</td>
            <td>
                <input  type="text" label="归口传真" name="proposal/recomend_fax" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/recomend_fax" />">
            </td>
        </tr>

        <tr>
            <td  align="right" >归口电话：</td>
            <td  colspan="1">
                <input  type="text" label="归口电话" name="proposal/recomend_tel" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/recomend_tel" />">
            </td>
            <td align="right">归口电子邮箱：</td>
            <td>
                <input  type="text" label="归口电子邮箱" name="proposal/recomend_email" class="input_css required email" maxlength="50" value="<x:out select="$xmlData/data/proposal/recomend_email" />">
            </td>
        </tr>

        <tr >
            <td align="right">项目负责人：</td>
            <td>
                <span name="proposal/fzr_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
            </td>
            <td align="right">手机号码：</td>
            <td>
                <span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
            </td>
        </tr>
        <tr >
            <td align="right">联系电话：</td>
            <td>
                <span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/></span>
            </td>
            <td align="right">电子邮箱：</td>
            <td>
                <span name="proposal/fzr_email"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/></span>
            </td>
        </tr>

        <tr >
            <td  align="right" nowrap>项目开始时间：</td>
            <td >
                <c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
                <cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="项目开始时间" ></cpt:date>
            </td>
            <td  align="right" nowrap>项目结束时间：</td>
            <td>
                <c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
                <cpt:date id="end_date" name="proposal/end_date" className="required date" label="项目结束时间"  value="${end_date}" ></cpt:date>
            </td>
        </tr>

        <tr>
            <td align="right">项目申请金额（万元）：</td>
            <td >
                <input type='text' name='proposal/request_amount' class="required" id='request_amount'
                       onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;"
                       onchange="synchronizationAmount();" value='<x:out select="$xmlData/data/proposal/request_amount"/>'
                       label="项目申请金额">
            </td>
            <td align="right">项目联系人姓名：</td>
            <td>
                <input  type="text" label="项目联系人姓名" name="proposal/contact_psn_cname" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />">
            </td>
        </tr>
        <tr >
            <td align="right">联系人电话：</td>
            <td>
                <input type="text" label="联系人电话" name="proposal/contact_psn_tel" class="input_css required " maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />">
            </td>

            <td align="right">联系人手机：</td>
            <td>
                <input type="text" label="联系人手机" name="proposal/contact_psn_mobile" class="input_css required mobile" onfocus="InitInput.setNumber(this,11,0,0)" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />">
            </td>
        </tr>
        <tr>

            <td align="right">申报日期：</td>
            <td colspan="3">
                <c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
                <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date" label="申报日期"></cpt:date>
            </td>
        </tr>
        <tr >
            <td align="right">项目简介（限300字）：</td>
            <td colspan="3">
                <textarea name="proposal/project_description" style="width:98%" class="input_textarea required maxlength:300"  label="项目简介"   rows=10 cols=60><x:out select="$xmlData/data/proposal/project_description" /></textarea>
                <input type="hidden" name="proposal/project_description_hidden" id="project/project_description_hidden" value="<x:out select="$xmlData/data/proposal/project_description_hidden" />"/>
            </td>
        </tr>
</table>
<script type="text/javascript">

function initTreeValueExt(treeId, treeNode) {
 	if ((treeNode && treeNode.isParent)) {
 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
 		$("#" + treeId).val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
 		return false;
 	}
 	var str = treeNode.name;
 	var obj = treeNode.parentNode;
 	while (obj != null) {
 		str = obj.name + "-" + str;
 		obj = obj.parentNode;
 	}
 	
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
}
</script>	